↳ Prolog
↳ PrologToPiTRSProof
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN_GAAGA(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_GAAGA(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_GGA(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN_GAAGA(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_GAAGA(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_GGA(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
ROW2COL_IN_GAAGA(.(X, Xs), A) → ROW2COL_IN_GAAGA(Xs, .([], A))
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X, .(C, Cs)) → U2_gga(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X, .(C, Cs)) → U2_GGA(R, Rs, X, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
U2_GGA(R, Rs, X, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X) → U2_GGA(Rs, row2col_in_gaaga(R, []))
U2_GGA(Rs, row2col_out_gaaga(Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm)
row2col_in_gaaga(.(X, Xs), A) → U4_gaaga(row2col_in_gaaga(Xs, .([], A)))
U4_gaaga(row2col_out_gaaga(B)) → row2col_out_gaaga(B)
row2col_in_gaaga([], A) → row2col_out_gaaga(A)
row2col_in_gaaga(x0, x1)
U4_gaaga(x0)
From the DPs we obtained the following set of size-change graphs: